package njci.softerware.com.myexpress2017.serviceObj;

import android.os.Parcel;
import android.os.Parcelable;

import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by 徐连宝 on 2016/9/10.
 */
public class PackageInfo implements Parcelable {

    /**
     * disTime : 2016-09-09 22:23:27
     * dispatcher : 6
     * id : 14
     * reTime : 2016-09-09 22:22:59
     * recevier : 6
     * sign : 6
     * sn : 123456
     * snTime : 2016-09-09 23:59:24
     * statue : 2
     */

    private String disTime;
    private int dispatcher;
    private int id;
    private String reTime;
    private int recevier;
    private int sign;
    private String sn;
    private String snTime;
    private int statue;

    public void setDisTime(String disTime) {
        this.disTime = disTime;
    }

    public void setDispatcher(int dispatcher) {
        this.dispatcher = dispatcher;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setReTime(String reTime) {
        this.reTime = reTime;
    }

    public void setRecevier(int recevier) {
        this.recevier = recevier;
    }

    public void setSign(int sign) {
        this.sign = sign;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public void setSnTime(String snTime) {
        this.snTime = snTime;
    }

    public void setStatue(int statue) {
        this.statue = statue;
    }

    public String getDisTime() {
        return disTime;
    }

    public int getDispatcher() {
        return dispatcher;
    }

    public int getId() {
        return id;
    }

    public String getReTime() {
        return reTime;
    }

    public int getRecevier() {
        return recevier;
    }

    public int getSign() {
        return sign;
    }

    public String getSn() {
        return sn;
    }

    public String getSnTime() {
        return snTime;
    }

    public int getStatue() {
        return statue;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.disTime);
        dest.writeInt(this.dispatcher);
        dest.writeInt(this.id);
        dest.writeString(this.reTime);
        dest.writeInt(this.recevier);
        dest.writeInt(this.sign);
        dest.writeString(this.sn);
        dest.writeString(this.snTime);
        dest.writeInt(this.statue);
    }

    public PackageInfo() {
    }

    protected PackageInfo(Parcel in) {
        this.disTime = in.readString();
        this.dispatcher = in.readInt();
        this.id = in.readInt();
        this.reTime = in.readString();
        this.recevier = in.readInt();
        this.sign = in.readInt();
        this.sn = in.readString();
        this.snTime = in.readString();
        this.statue = in.readInt();
    }

    public static final Parcelable.Creator<PackageInfo> CREATOR = new Parcelable.Creator<PackageInfo>() {
        public PackageInfo createFromParcel(Parcel source) {
            return new PackageInfo(source);
        }

        public PackageInfo[] newArray(int size) {
            return new PackageInfo[size];
        }
    };
}
